<?php
/**
 * User: Jerry
 * Date: 2017/7/24
 * Time: 18:33
 */

namespace SDXApi\Model;


use Think\Model;

class HomeTemplateCommendModel extends Model
{
    protected $tableName = 'home_template_commend';

    public function findCommendCategoryByTemplateId($templateId = 0)
    {
        if (empty($templateId)) {
            return false;
        }

        $where = array(
            'template_id'   =>  $templateId,
        );

        return $this->where($where)->select();
    }
}